home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ham Radio 2000 #2
/
Ham Radio 2000 - Volume 2.iso
/
HAMV2
/
ANTENNA
/
RHOM112
/
RHOM.BAS
< prev
next >
Wrap
BASIC Source File
|
1996-03-26
|
9KB
|
222 lines
11 PRINT CHR$(12): PRINT "Welcome to RHOMBIC UTILITY": PRINT
12 PRINT "non-graphics version for mda/herc/cga, equivalent to version 1.02": PRINT
29 REM
30 PRINT "What is the proposed height above ground of the antenna, in"
31 PRINT "wavelengths";
60 INPUT h
65 IF h < .26 THEN GOTO 95
70 R = ATN((1 / (4 * h)) / (SQR(1 - (1 / (4 * h)) ^ 2)))
80 T = R * 57.29577958#
85 PRINT
89 PRINT "The min. possible wave angle based on height above ground in degrees: "
90 PRINT USING "##.##"; T
92 PRINT : GOTO 101
95 PRINT : PRINT "The minimum possible wave angle based on height above ground: "
97 PRINT " > 75 degrees": PRINT
101 PRINT "What is the desired wave angle (usually 0 degrees for vhf)?"
102 PRINT "Choose one of the following (in degrees): 0 5 10 15 20 25 30"
105 INPUT W
135 IF W = 0 THEN 200
140 IF W = 5 THEN 250
145 IF W = 10 THEN 300
150 IF W = 15 THEN 350
155 IF W = 20 THEN 400
160 IF W = 25 THEN 450
165 IF W = 30 THEN 500
170 PRINT "error": PRINT
175 GOTO 102
176 PRINT : PRINT "To print this page, hit <PrtSc>. To continue, hit .<cr>"
177 PRINT "(a period followed by a carriage return)."
178 INPUT py$
179 IF py$ = "." THEN GOTO 200
180 PRINT "error!": GOTO 178
200 PRINT "No optimum leg length is specified in the Handbook charts."
201 PRINT "Enter proposed leg length in wavelengths"
202 PRINT "1.0 - 1.5 - 2.0 - 2.5 - 3.0 - 3.5 - 4.0 - 4.5 - 5.0 - 5.5 - 6.0"
203 INPUT L
205 IF L = 1! THEN TA = 34.5: GOTO 550
206 IF L = 1.5 THEN TA = 45: GOTO 550
207 IF L = 2! THEN TA = 51: GOTO 550
208 IF L = 2.5 THEN TA = 56: GOTO 550
209 IF L = 3! THEN TA = 58: GOTO 550
210 IF L = 3.5 THEN TA = 61: GOTO 550
211 IF L = 4! THEN TA = 63: GOTO 550
212 IF L = 4.5 THEN TA = 64.5: GOTO 550
213 IF L = 5! THEN TA = 66: GOTO 550
214 IF L = 5.5 THEN TA = 66.5: GOTO 550
215 IF L = 6! THEN TA = 67.5: GOTO 550
220 PRINT "error": GOTO 200
250 PRINT "No optimum leg length is specified in the Handbook charts."
251 PRINT "Enter proposed length in wavelengths"
252 PRINT "1.0 - 1.5 - 2.0 - 2.5 - 3.0 - 3.5 - 4.0 - 4.5 - 5.0 - 5.5 - 6.0"
253 INPUT L
255 IF L = 1! THEN TA = 34.5: GOTO 550
256 IF L = 1.5 THEN TA = 45: GOTO 550
257 IF L = 2! THEN TA = 52: GOTO 550
258 IF L = 2.5 THEN TA = 56: GOTO 550
259 IF L = 3! THEN TA = 59: GOTO 550
260 IF L = 3.5 THEN TA = 62: GOTO 550
261 IF L = 4! THEN TA = 63.5: GOTO 550
262 IF L = 4.5 THEN TA = 65: GOTO 550
263 IF L = 5! THEN TA = 66.5: GOTO 550
264 IF L = 5.5 THEN TA = 67.5: GOTO 550
265 IF L = 6! THEN TA = 68.5: GOTO 550
270 PRINT "error": GOTO 250
300 PRINT "No optimum leg length is specified in the Handbook charts."
301 PRINT "Enter proposed leg length in wavelengths"
302 PRINT "1.0 - 1.5 - 2.0 - 2.5 - 3.0 - 3.5 - 4.0 - 4.5 - 5.0 - 5.5 - 6.0"
303 INPUT L
305 IF L = 1! THEN TA = 36: GOTO 550
306 IF L = 1.5 THEN TA = 45.5: GOTO 550
307 IF L = 2! THEN TA = 52.5: GOTO 550
308 IF L = 2.5 THEN TA = 56.5: GOTO 550
309 IF L = 3! THEN TA = 60: GOTO 550
310 IF L = 3.5 THEN TA = 62.5: GOTO 550
311 IF L = 4! THEN TA = 64.5: GOTO 550
312 IF L = 4.5 THEN TA = 66.5: GOTO 550
313 IF L = 5! THEN TA = 67.5: GOTO 550
314 IF L = 5.5 THEN TA = 69: GOTO 550
315 IF L = 6! THEN TA = 70: GOTO 550
320 PRINT "error": GOTO 300
350 PRINT "No optimum leg length is specified in the Handbook charts."
351 PRINT "Enter proposed leg length in wavelengths"
352 PRINT "1.0 - 1.5 - 2.0 - 2.5 - 3.0 - 3.5 - 4.0 - 4.5 - 5.0 - 5.5 - 6.0"
353 INPUT L
355 IF L = 1! THEN TA = 37: GOTO 550
356 IF L = 1.5 THEN TA = 47: GOTO 550
357 IF L = 2! THEN TA = 53.5: GOTO 550
358 IF L = 2.5 THEN TA = 58: GOTO 550
359 IF L = 3! THEN TA = 61.5: GOTO 550
360 IF L = 3.5 THEN TA = 64.5: GOTO 550
361 IF L = 4! THEN TA = 66.5: GOTO 550
362 IF L = 4.5 THEN TA = 68: GOTO 550
363 IF L = 5! THEN TA = 69.5: GOTO 550
364 IF L = 5.5 THEN TA = 71.5: GOTO 550
365 IF L = 6! THEN TA = 72: GOTO 550
370 PRINT "error": GOTO 350
400 PRINT "Optimum leg length is 4.25 wavelengths."
401 PRINT "Enter proposed length in wavelengths"
402 PRINT "1.0 - 1.5 - 2.0 - 2.5 - 3.0 - 3.5 - 4.0 - 4.25"
403 INPUT L
405 IF L = 1! THEN TA = 37.5: GOTO 550
406 IF L = 1.5 THEN TA = 48: GOTO 550
407 IF L = 2! THEN TA = 55: GOTO 550
408 IF L = 2.5 THEN TA = 60: GOTO 550
409 IF L = 3! THEN TA = 63.5: GOTO 550
410 IF L = 3.5 THEN TA = 66.5: GOTO 550
411 IF L = 4! THEN TA = 68.5: GOTO 550
412 IF L = 4.25 THEN TA = 70: GOTO 550
420 PRINT "error": GOTO 400
450 PRINT "Optimum leg length is 2.75 wavelengths."
451 PRINT "Enter proposed leg length in wavelengths"
452 PRINT "1.0 - 1.5 - 2.0 - 2.5 - 2.75"
453 INPUT L
455 IF L = 1! THEN TA = 39: GOTO 550
456 IF L = 1.5 THEN TA = 50: GOTO 550
457 IF L = 2! THEN TA = 57: GOTO 550
458 IF L = 2.5 THEN TA = 62: GOTO 550
459 IF L = 2.75 THEN TA = 65: GOTO 550
470 PRINT "error": GOTO 450
500 PRINT "Optimum leg length is 2.0 wavelengths."
501 PRINT "Enter proposed leg length in wavelengths"
502 PRINT "1.0 - 1.5 - 2.0"
503 INPUT L
505 IF L = 1! THEN TA = 40: GOTO 550
506 IF L = 1.5 THEN TA = 52: GOTO 550
507 IF L = 2! THEN TA = 60: GOTO 550
520 PRINT "error": GOTO 500
550 PRINT "to print this page, hit <PrtSc>; to continue, hit .<cr>"
555 INPUT py$
560 IF py$ = "." THEN GOTO 600
565 PRINT "error!": GOTO 550
600 PRINT CHR$(12): PRINT : PRINT "Do you wish to 'optimize' the leglength?": PRINT
612 PRINT "An 'optimized leglength' means a leglength which will"
613 PRINT "cause the antenna to have the greatest output it possibly"
614 PRINT "can at the desired wave angle. If your antenna is for vhf/"
615 PRINT "uhf, you should select 'y' now, to optimize. A non-optimized"
616 PRINT "rhombic will have the greatest output it possibly can at the"
617 PRINT "desired wave angle, BUT may have even greater output at"
618 PRINT "some other wave angle. See page 7-10 (7-dash-10) in the "
619 PRINT "1984 edition of the ARRL Antenna Handbook: alignment of lobes.": PRINT
620 PRINT "And remember, if you are asking for a zero-degree wave angle"
621 PRINT "(usually necessary for vhf/uhf), you can only APPROACH zero deg.;"
622 PRINT "for example, if the antenna is 4 wavelengths above ground,"
623 PRINT "the wave angle will be about 3.5 degrees, and at 5 wavelengths"
624 PRINT "above ground it will be about 2.8 degrees, even if you want zero"
625 PRINT "degrees.": PRINT
626 PRINT "First, print this screen by hitting <PrtSc>, and to continue"
627 PRINT "hit a .<cr>": PRINT
628 INPUT py$
629 IF py$ = "." THEN GOTO 635
630 PRINT "error!": GOTO 626
635 PRINT CHR$(12): PRINT
636 PRINT "Type 'y' to optimize (mostly for vhf/uhf), or"
637 PRINT "Type 'n' to not optimize (adequate for most hf)"
638 INPUT OP$
640 IF OP$ = "y" THEN L1 = (L * .74): GOTO 646
642 IF OP$ = "n" THEN L1 = L: GOTO 646
644 PRINT "error!": GOTO 636
646 PRINT CHR$(12): PRINT "Tilt angle = "; TA; "deg."
650 PRINT "Proposed leg length = "; L; " wavelengths"
652 PRINT "Actual leg length to be used = "; L1; " wavelengths"
654 PRINT : PRINT "now enter freq in MHz:"
656 INPUT FR
658 L2 = (984 * (L1 - .025) / (FR * 3.28))
660 PRINT : PRINT "***Optimized leg length = "; L2; " meters"
661 A1 = (180 - (90 + TA))
663 PRINT : PRINT "Half-angle at feedpoint = "; A1; " degrees"
665 Q = SIN(A1 / (180 / 3.14159265#))
670 Q1 = (L2 * Q)
675 PRINT : PRINT "half-width = "; Q1; " meters"
677 Q2 = (2 * Q1)
680 PRINT : PRINT "Width = "; Q2; " meters"
686 PRINT : PRINT "Min. poss. wave angle = "; T; " deg. at a hgt of "; h; " wavelengths"
687 PRINT "(your desired wave angle was"; W; "deg.)"
688 H1 = (984 * (h - .025) / (FR * 3.28))
689 PRINT h; " wavelengths is "; H1; " meters up."
695 PRINT : PRINT "Now hit <PrtSc> to print the above info; hit .<cr> to continue"
697 INPUT py$
698 IF py$ = "." THEN GOTO 705
699 PRINT "error!": GOTO 695
705 PRINT CHR$(12): PRINT : PRINT "Do you want xyz coordinates for the 4 'points' of the rhombic, for"
706 PRINT "typing into Elnec? (y/n)"
707 INPUT c$
708 IF c$ = "n" OR c$ = "N" THEN GOTO 857
709 IF c$ = "y" OR c$ = "Y" THEN GOTO 750 ELSE PRINT "Error.": GOTO 705
745 REM
746 REM
750 X = Q1 / TAN(A1 / (180 / 3.14159265#))
751 Y = Q1
752 Z = H1
753 X1 = (2 * X)
754 REM
756 PRINT CHR$(12)
760 PRINT " B"
765 PRINT : PRINT : PRINT : PRINT : PRINT : PRINT : PRINT " A C"
770 PRINT : PRINT : PRINT : PRINT : PRINT : PRINT : PRINT " D"
850 PRINT : PRINT "A = feedpoint = 0, 0,"; Z; " B = "; X; ","; Y; ","; Z
855 PRINT "C = termination ="; X1; ",0,"; Z; " D = "; X; ","; -Y; ","; Z
856 PRINT "above xyz coordinates in meters of course."
857 PRINT "Thanks for using RHOMBIC UTILITY! Send DETAILED comments"
858 PRINT "and suggestions to: Orrin C. Winton WN1Z, PO Box 89, Big Sur CA 93920."
859 PRINT "Internet (4/1/96): orrin@redshift.com"
860 PRINT "Hit <PrtSc> to save this page. Hit ' .<cr>' to end!"
865 INPUT PF$: IF PF$ = "." THEN GOTO 999
867 PRINT "error!": GOTO 860
999 END